import java.io.File;
import java.io.IOException;

public class IODemo6 {
    public static void main(String[] args) throws IOException {
        File file = new File("./aaa/demo.java");
        if(file.createNewFile()){
            System.out.println("文件创建成功！");
        }else{
            System.out.println("文件创建失败！");
        }
    }
}
